import yargs from 'yargs';

const args = yargs

    .option('production',{  //区分开发环境
        boolean:true,
        default:false,
        describe:'min all scripts'
    })

    .option('watch',{  //是否监听所有文件
        boolean:true,
        default:false,
        describe:'watch all files'
    })

    .option('verbose',{ //日志
        boolean:true,
        default:false,
        describe:'log'
    })

    .option('sourcemaps',{  //映射
        describe:'force the creation of sroucemaps'
    })

    .option('port',{ //服务器端口
        string:true,
        default:8080,
        describe:'server port'
    })

    .argv



